<template>
	<view class="content">
		<view class="list" v-for="(item,index) in list">
			<view @click="go" class="list-item">
				<p class="slh_two">{{item.content}}</p>

				<view class="right dis_f_w">


					<img :src="img_src + itm" v-for="(itm,idx) in item.image">


				</view>
				<view class="info">
					<text>行情资讯</text>
					<text>{{item.createtime}}</text>
					<text style="flex-grow: 1;text-align: right">{{item.view}}人阅读</text>
				</view>

			</view>
		</view>
	</view>
</template>
<script>
	export default {
		name: 'index',
		components: {},
		props: {
			list: {
				type: Array,
				default: []
			}
		},
		data() {
			return {
				img_src: this.$.img_src
			}
		},
		methods: {
			go() {
				// uni.navigateTo({url:'/pages/buy/supplyDetails'})
			}
		},
		created() {

		},
		mounted() {

		},
	}
</script>

<style lang="scss" scoped>
	.content {
		// margin: 20rpx;
		border-right: 12rpx;



		.list {
			background-color: #fff;
			padding: 20rpx;

			.list-item {

				padding: 20rpx 0;
				border-bottom: 1rpx solid #F4F4F4;
				align-items: center;
				gap: 20rpx;
				color: #131313;

				.right {
					margin: 20rpx 0;
					display: flex;
					color: #222222;
					gap: 20rpx;
					justify-content: space-between;


				}

				img {
					flex-shrink: 0;
					width: 220rpx;
					height: 144rpx;
					border-radius: 8rpx;

				}

				.info {
					display: flex;
					align-items: center;
					gap: 10rpx;
					color: #999999;

				}
			}

			.list-item:last-child {
				border: none;
			}
		}
	}
</style>